import React from 'react';
import { history } from 'umi';
import { Result, Button } from 'antd';

export default function NotFound() {
  const onClick = () => {
    history.push('/');
  };
  return (
    <div className="h100p flex-center">
      <Result
        status="404"
        title={<div className="white">404</div>}
        subTitle="此页面未找到～"
        extra={
          <Button type="primary" onClick={onClick}>
            回到首页
          </Button>
        }
      />
    </div>
  );
}
